package com.hst.capacity.domain.model.response.auth;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.List;

/**
 * 用户绑定信息，包括运力商、权限等
 */
@Data
public class UserBindingVO {

    /**
     * 用户简明信息
     */
    private UserSimple user;

    /**
     * 用户角色
     */
    private List<String> roles;

    /**
     * 绑定商户信息
     */
    private BindingMerchant merchant;

    @Data
    public static class UserSimple {

        @JsonProperty("userId")
        private String id;

        private String username;

        private String userType;

        private String displayName;
    }

    @Data
    public static class BindingMerchant {

        private String merchantId;

        private String merchant;

        private String cityCode;

        private String cityName;
    }

}
